part of '../element.dart';

/// 至少是我常用的Paint就这么两种
/// 一种是描边，一种是填充
class PAINT {
  static Paint line(Color color, double width) => Paint()
    ..color = color
    ..strokeWidth = width
    ..style = PaintingStyle.stroke
    ..strokeJoin = StrokeJoin.bevel
    ..isAntiAlias = true;

  static Paint fill(Color color) => Paint()
    ..color = color
    ..style = PaintingStyle.fill;
}
